//
//  FirstViewController.m
//  PhotoBook
//
//  Created by Classic on 12/10/12.
//  Copyright (c) 2012 Hoang tuan. All rights reserved.
//

#import "FirstViewController.h"
#import "LoginViewController.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    self.mTxtFldUserName.delegate = self;
    self.mTxtFldPass.delegate = self;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)loginClick:(id)sender {
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    LoginViewController *mLogin = segue.destinationViewController;
    mLogin.strName = self.mTxtFldUserName.text;
}
- (void)dealloc {
    [_mTxtFldUserName release];
    [_mTxtFldPass release];
    [super dealloc];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    [textField resignFirstResponder];
    return NO;
}
@end
